package com.dfbz.demo02_InputStream;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.InputStream;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo01_FileInputStream构造方法 {
    public static void main(String[] args) throws Exception{
        InputStream is=new FileInputStream("001.txt");
        InputStream is2=new FileInputStream(new File("001.txt"));

        is.close();
        is2.close();
    }
}
